USE [SRD]
GO

/****** Object:  Table [dbo].[TELEFONE_EMPRESA]    Script Date: 05/15/2011 09:22:07 ******/
SET ANSI_NULLS ON
GO

SET QUOTED_IDENTIFIER ON
GO

CREATE TABLE [dbo].[TELEFONE_EMPRESA](
	[TELEFONE_EMPRESA_ID] [int] IDENTITY(1,1) NOT NULL,
	[NUMERO] [int] NOT NULL,
	[EMPRESA_ID] [int] NOT NULL,
 CONSTRAINT [PK_TELEFONE_EMPRESA] PRIMARY KEY CLUSTERED 
(
	[TELEFONE_EMPRESA_ID] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]

GO

ALTER TABLE [dbo].[TELEFONE_EMPRESA]  WITH CHECK ADD  CONSTRAINT [FK_TELEFONE_EMPRESA_EMPRESA] FOREIGN KEY([EMPRESA_ID])
REFERENCES [dbo].[EMPRESA] ([EMPRESA_ID])
GO

ALTER TABLE [dbo].[TELEFONE_EMPRESA] CHECK CONSTRAINT [FK_TELEFONE_EMPRESA_EMPRESA]
GO


